﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xss.Data.Mapper
{
    public class ExecuteDataTableMapper : AdoMapper
    {
        public ExecuteDataTableMapper()
        {
            TableName = GetHashCode().ToString();
        }

        public string TableName { get; set; }

        protected override object ExecuteIntenal(object paramater)
        {
            AdoCommander commonder = new AdoCommander(Request.Store.CurrentSession);
            return commonder.ExecuteDataTable(TableName, Sql.GetStatement(paramater));
        }
    }
}
